#ifndef MY_COMBO_SEND_H
#define MY_COMBO_SEND_H

#include <QObject>
#include <QGroupBox>
#include <QComboBox>
#include <QPushButton>
#include <QHBoxLayout>
#include "common.h"

class My_combo_send : public QGroupBox
{
    Q_OBJECT
public:
    explicit My_combo_send(const QString &title, QWidget *parent = nullptr);
    void setEnabled(bool flag);
    void addItems(const QStringList &texts);
    void setCurrentIndex(int index);
    QString currentText();
    QPushButton* btn;
private:
    QComboBox* combo;

    QHBoxLayout* layout;
};

#endif // MY_COMBO_SEND_H
